package com.mooc.comment.common;

import com.mooc.comment.exception.WithTypeException;

public class UserException extends  RuntimeException implements WithTypeException {

      private static final long serialVersionUID = 1L;

      private  Type type;

      public UserException(Type type, String message){
          super(message);
          this.type = type;
      }

      public Type type(){
          return type;
      }

    public enum Type{
        USER_NOT_LOGIN,USER_NOT_FOUND,USER_AUTH_FAIL;
    }

}
